import sys, os.path
sys.path.append("..")

from tagengine.parsers import languageparser

crr = languageparser.CommandRulesRetriever()
print crr.rules

m = crr.generalPattern.match("light match")
print m
print m.group("verb")
print m.group("object")
print m.group("prep")
print m.group("indirectobject")
